﻿@model Auction_Intranet.Models.RoomModel

@{
    ViewBag.Title = "DetailsRoom";
}

<div class="admin-rooms-details">

<h2>DetailsRoom</h2>

<fieldset>
    <legend>@Model.room.Name</legend>

    <div class="display-label">Location</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.room.Location)
    </div>

    <div class="display-label">Capacity</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.room.Capacity)
    </div>

    <div class="display-label">Size</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.room.Size)
    </div>

    <div class="display-label">Amenities</div>
    <div class="display-field">
        <ul>
            @foreach (var item in Model.amenities)
            { 
                <li>@item.Amenity.Name</li>
            }
        </ul>
    </div>

    <div class="display-label">Pictures</div>
    <div class="display-field">
        <ul class="picture-list">
                @foreach (var pic in Model.pictures)
                {                     
                    <li class="picture-item">                        
                        <img alt="Room picture" src="@Url.Content("~/Content/Photos/Rooms/Thumb/" + pic.Id + ".jpg")"/>
                    </li>
                }
        </ul>        
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "EditRoom", new { Model.room.Id }) |
    @Html.ActionLink("Back", "Rooms")
</p>
</div>